public class factorial {
    public static void main(String[] args) {
        System.out.println(Favtorinal(5));
    }
    public static int Favtorinal(int n){
        if(n>1){
            return n*Favtorinal(n-1);
        }else{
            return 1;
        }
    }
}
